package secondPart.polymorphism;

public class Initial {
    public static void main(String[] args) {
        Animal obj1 = new Animal();
        Animal obj2 = new Dog();
        Animal obj3 = new Cat();
        Dog obj4 = new Dog();
        obj1.eat();
        // obj2.watchDoor();
        obj4.watchDoor();
        System.out.println(obj3);
    }
}
